<script setup lang="ts">
import { ref } from 'vue'

const showDialog = ref(false)
const openDialog = () => {
  showDialog.value = true;
}

// 父组件传值回来
const getInfo = (e: object) => {
  console.log(e)
  showDialog.value = false
}
// 父组件传值回来
const contactShow = (e: boolean) => {
  showDialog.value = false
}

</script>

<template>
  <div>
    <el-button @click="openDialog">打开弹窗</el-button>
    <card-dialog :showDialog="showDialog" title="新增数据中心" @getInfo="getInfo" @contactShow="contactShow" width="650px" height="700px">
      
    </card-dialog>
    <complex-search></complex-search>
  </div>
</template>

<style scoped>
</style>
